import java.util.HashSet;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

/**
 * @Author Stringzhua
 * @Date 2024/10/31 11:56
 * description:
 */
public class ReentrantLockDemo04 {
    public static void main(String[] args) {
//        CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
        CopyOnWriteArraySet<String> list = new CopyOnWriteArraySet<>();
        //写
//        list.set(0,"");

        list.add("");

        list.remove(0);
        //读
//        list.get(0);



    }
}
